package es.cea.chat;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class ServletIntro
 */
@WebServlet("/ServletIntro")
public class ServletIntro extends HttpServlet {
	private static final long serialVersionUID = 1L;
     
    public ServletIntro() {
        super();
       
    }

	
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter pw = response.getWriter();
		pw.print("<html><head></head><body>");
		pw.print("<form action='ServletChat' method='GET'>");
		pw.print("Usuario: <input type='text'><br>");
		pw.print("Color: <select name='color'>");
		pw.print("<option value='blue'>azul</option>");
		pw.print("<option value='red'>rojo</option>");
		pw.print("<option value='black'>negro</option>");
		pw.print("<option value='green'>verde</option>");
		pw.print("<option value='orange'>naranja</option>");
		pw.print("<option value='purple'>morado</option>");
		pw.print("<option value='pink'>rosa</option>");
		pw.print("</select><br>");
		pw.print("<input type='submit' value='Entrar'");
		pw.print("</form>");
		pw.print("</body></html>");
		
	}

}
